# def current_ui_xml(save_dir=None):
#     """
#     获取当前页面的布局xml
#     :param save_dir: 文件保存根目录
#     :return: 布局xml文件的本地路径
#     """
#     ui_xml_name = "ui_%d.xml" % (int(round(t * 1000)))
#     start_cmd('adb shell /system/bin/uiautomator dump --compressed  /sdcard/%s' % ui_xml_name)
#     ui_xml_path = os.path.join(os.getcwd() if save_dir is None else save_dir, ui_xml_name)
#     start_cmd('adb pull /sdcard/%s %s' % (ui_xml_name, ui_xml_path))
#     return ui_xml_path



# dump出所有控件信息到xml中
# adb shell /system/bin/uiautomator dump --compressed /手机存储路径/ui.xml

# 将文件从手机导出到PC
# adb pull /手机存储路径/ui.xml 本地路径

# adb shell /system/bin/uiautomator dump --compressed /sdcard/ui.xml

# adb pull /sdcard/ui.xml  ui.xml
